﻿<phone:PhoneApplicationPage 
    x:Class="SoftwareLogistics.SharepointClient.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:tk="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="{StaticResource PhoneBackgroundBrush}">        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <tk:PerformanceProgressBar x:Name="ProgressBar" Visibility="Collapsed" IsIndeterminate="False"  VerticalAlignment="Top" />
        
        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="{StaticResource AppTitle}" Style="{StaticResource PhoneTextNormalStyle}" Margin="0"/>
            <TextBlock x:Name="PageTitle" Text="login" Margin="0,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <Grid x:Name="LoggedOut" Grid.RowSpan="2" Visibility="Collapsed">
            <TextBlock Text="Thanks for playing!" HorizontalAlignment="Center" Margin="0,30,0,0" FontSize="48" />
            <TextBlock Text="Press the back arrow to exit." HorizontalAlignment="Center" Margin="0,200,0,0" FontSize="32" />
            <TextBlock Text="- Software Logistics, LLC" HorizontalAlignment="Right" Margin="0,300,0,0" FontSize="32" />
        </Grid>
        
        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="0,0,12,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="45" />
                <RowDefinition Height="72" />
                <RowDefinition Height="45" />
                <RowDefinition Height="72" />
                <RowDefinition Height="90" />
                <RowDefinition Height="80" />
            </Grid.RowDefinitions>
            <TextBlock Text="user name:" Grid.Row="0" FontSize="24" Margin="12,0,0,0" />
            <TextBox x:Name="UserName" Grid.Row="1" />
            <TextBlock Text="password:"  Grid.Row="2" FontSize="24" Margin="12,0,0,0"/>
            <PasswordBox x:Name="Password" Grid.Row="3"  />
            <StackPanel  Grid.Row="4" Orientation="Horizontal" >
                <TextBlock Text="save password:  " Margin="12,24,0,0" FontSize="24"  />
                <CheckBox x:Name="SavePassword"  />
            </StackPanel>
            <Button Content="Login" x:Name="LoginButton" Height="72" HorizontalAlignment="Left" Margin="1,0,0,0" VerticalAlignment="Top" Width="160" Click="LoginButton_Click"  Grid.Row="5"  />
        </Grid>
    </Grid>
 
</phone:PhoneApplicationPage>